#!/usr/bin/python
#coding:utf-8 
import os
class JarProjectUtil: 
    def  author(self):
        autherInfo="""
        参考 (排名不分先后): 
        https://oldj.net/article/2018/11/16/make-irregular-shape-images/  ==>提供重要思路
        https://www.iconfont.cn/search/index?searchType=icon&q=%E6%8B%BC%E5%9B%BE&page=4&fromCollection=-1&fills=&tag=
        Author: Cgrain 
        博客园:  https://www.cnblogs.com/whatarey/
        码云: https://gitee.com/Whatarey_admin/captcha_-python   (欢迎Star)
        createTime :2021-7-5 
                                -- 热烈庆祝中国共产党成立100周年
        """
        
        return autherInfo
        
    def project_root_path(self,project_name=None): 
        """
        获取当前项目根路径
        :param project_name:
        :return: 根路径
        """
        PROJECT_NAME = 'captcha_-python' 
        project_path = os.path.abspath(os.path.dirname(__file__)).split('Util')[0]
        # print(project_path,"-------")
        # //root_path = project_path[:project_path.find("{}\\".format(PROJECT_NAME)) + len("{}\\".format(PROJECT_NAME))]
        print('当前项目名称：{}\r\n当前项目根路径：{} \r'.format(PROJECT_NAME, project_path))
        return project_path